import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home.vue'
import getActicle from '@/pages/getActicle.vue'
import getGoods from '@/pages/getGoods.vue'
import contactUs from '@/pages/contactUs.vue'
import aboutUs from '@/pages/aboutUs.vue'
import downLoad from '@/pages/download.vue'
import joinUs from '@/pages/joinUs.vue'
import newsDetail from '@/pages/newsDetail.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      meta: {
        title: '纳品网-专注羽绒服女装供应链平台'
      }
    },
    {
      path: '/getActicle',
      name: 'getActicle',
      component: getActicle,
      meta: {
        title: '纳品网-社区精选'
      }
    },
    {
      path: '/getGoods',
      name: 'getGoods',
      component: getGoods,
      meta: {
        title: '纳品网-精选好品'
      }
    },
    {
      path: '/contactUs',
      name: 'contactUs',
      component: contactUs,
      meta: {
        title: '纳品网-联系我们'
      }
    },
    {
      path: '/downLoad',
      name: 'downLoad',
      component: downLoad,
      meta: {
        title: '纳品网-下载APP'
      }
    },
    {
      path: '/aboutUs',
      name: 'aboutUs',
      component: aboutUs,
      meta: {
        title: '纳品网-关于我们'
      }
    },
    {
      path: '/joinUs',
      name: 'joinUs',
      component: joinUs,
      meta: {
        title: '纳品网-联系我们'
      }
    },
    {
      path: '/newsDetail',
      name: 'newsDetail',
      component: newsDetail,
      meta: {
        title: '纳品网-新闻详情'
      }
    }
  ]
  // mode:'history'
})
